package com.itheima.day14_继承.继承07;

public class Manager extends Person{
    private double bonus;

    public Manager() {
    }


    public Manager(String name, int id, double salary, double bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public void work(){
        super.work();
        System.out.print(",奖金为:" + bonus+",的项目经理正在管理程序员写代码");
    }
}
